import {Component} from '@angular/core';
import {
    AlertController, LoadingController, NavController, NavParams, Platform,
    ToastController, ViewController
} from 'ionic-angular';
import {BasePage} from "../../BasePage";

/**
 * Generated class for the LoginSettingPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@Component({
    selector: 'page-login-privacy',
    templateUrl: 'login-privacy.html'
})
export class LoginPrivacyPage extends BasePage {
    constructor(public navCtrl: NavController, public navParams: NavParams,
                public platform: Platform,
                public loadingCtrl: LoadingController,
                public toastCtrl: ToastController,
                public alertCtrl: AlertController, public view: ViewController) {
        super(platform, loadingCtrl, toastCtrl, alertCtrl);
    }

    agree(){
        if(this.view){
            this.view.dismiss(null, '', {animate: false});
        }
        event.stopPropagation();
    }
}
